﻿using Microsoft.AspNetCore.Mvc;

namespace 数据分析系统.Controllers
{
    /// <summary>
    /// 聊天信息模块
    /// </summary>
    [ApiController]
    [Route("[controller]")]
    public class ChatController : Controller
    {
        /// <summary>
        /// 搜索所有聊天记录，通过关键词搜索
        /// </summary>
        /// <returns></returns>
        [HttpPost("Search/All")]
        public IActionResult SearchAll(String key)
        {
            return View();
        }
        /// <summary>
        /// 搜索用户与用户之间的聊天记录，根据用户名称来搜索，所有时间
        /// </summary>
        /// <param name="username_a">用户名称一</param>
        /// <param name="username_b">用户名称二</param>
        /// <returns></returns>
        [HttpPost("Search/Dialog")]
        public async Task<IActionResult>SearcheDialog(String username_a, String username_b)
        {
            return View();
        }
        /// <summary>
        /// 根据时间周期来查看用户与用户之间的聊天记录
        /// </summary>
        /// <param name="username_a">用户名称一</param>
        /// <param name="username_b">用户名称二</param>
        /// <param name="start_time">开始时间</param>
        /// <param name="end_time">结束时间</param>
        /// <returns></returns>
        [HttpPost("Search/Dialog/Time")]
        public async Task<IActionResult>SearchDialogTime(String username_a, String username_b, String start_time, String end_time)
        {
            return View();
        }
    }
}
